package com.team11.server.controller.admin;

import com.team11.server.pojo.P_C_S_T_information;
import com.team11.server.service.admin.Admin_TermSelS_NotInP_Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

@CrossOrigin
@RestController
@Api(tags = "管理员接口")
public class Admin_TermSelS_NotInP_Controller {
    @Autowired
    private Admin_TermSelS_NotInP_Service admin_termSelS_notInP_service;
    @ApiOperation("条件查询非此项目组的学生(需要提供此小组id)")
    @PostMapping("/TermSelS_NotInP")
    public List<P_C_S_T_information> termSelS_notInP(String cDepartment,String cMajor,
                                                     String cGrade,String cClass,
                                                     String sNumber,String sName,Integer pId){
        HashMap<String,Object> map=new HashMap<>();
        map.put("cDepartment",cDepartment);
        map.put("cMajor",cMajor);
        map.put("cGrade",cGrade);
        map.put("cClass",cClass);
        map.put("sNumber",sNumber);
        map.put("sName",sName);
        map.put("pId",pId);
        return admin_termSelS_notInP_service.termSNotInP(map);

    }
}
